package com.demo.hello.spring.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@SpringBootApplication
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) 演示闭特定的自动配置
@RestController
public class HelloSpringBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloSpringBootApplication.class, args);
    }

    @RequestMapping(value = "", method = RequestMethod.GET)
    public String hi() {
        return "hello-spring-boot";
    }
}
